Skip to content

[skip changelog] Disable date stamp in command line reference documentation #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2020
Merged

[skip changelog] Disable date stamp in command line reference documentation #825

merged 1 commit into from
Jul 23, 2020

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jul 12, 2020

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • The PR follows our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce?

Feature?

  • What is the current behavior?
  • What is the new behavior?

By default, Cobra automatically adds a date stamp to the generated command line reference content. Having a date stamp is not necessarily a bad thing, though it's doubtful that it is useful enough to justify its presence. However, the formatting of this date stamp causes it to be shown as an item in the table of contents of each command reference page, inappropriately located under the "SEE ALSO" heading. This clutters up the documentation without providing any benefits at all.


Clipboard01

  • Does this PR introduce a breaking change?

Cobra has provided an option to disable the automatic insertion of the date stamp: https://github.com/spf13/cobra/blob/master/doc/README.md#disableautogentag
This pull request uses that option to remove the date stamp from the command reference documentation.

  • Other information:

You can see a demonstration of the generated docs after this change here:
https://per1234.github.io/arduino-cli/42.0/commands/arduino-cli/

@per1234 per1234 added the topic: documentation Related to documentation for the project label Jul 12, 2020
@per1234 per1234 changed the title Disable date stamp in command line reference documentation [skip changelog] Disable date stamp in command line reference documentation Jul 12, 2020
By default, Cobra automatically adds a date stamp to the generated command line reference content. Having a date stamp is not necessarily a bad thing, though it's also doubtful that it is useful enough to justify its presence. However, the formatting of this date stamp causes it to be shown as an item in the table of contents of each command reference page, inappropriately located under the "SEE ALSO" heading. This clutters up the documentation without providing any benefits at all.

Fortunately, Cobra has provided an option to disable this behavior: https://github.com/spf13/cobra/blob/master/doc/README.md#disableautogentag
@rsora rsora merged commit ec8d4f1 into arduino:master Jul 23, 2020
@per1234 per1234 deleted the disable-command-ref-date-stamp branch July 23, 2020 12:45
@per1234 per1234 self-assigned this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants